package com.example.cyk.config.exception;

import com.example.cyk.config.response.AppReturn;
import com.example.cyk.config.response.CodeMsg;

/**
 * 自定义异常
 */
public class ApplicationException extends RuntimeException{

    private AppReturn errorReturn;

    public ApplicationException(AppReturn errorReturn) {
        super(errorReturn.getMsg());
        this.errorReturn = errorReturn;
    }

    public AppReturn getErrorReturn() {
        return errorReturn;
    }
}
